<?php 
if(extension_loaded('zlib')){//检查服务器是否开启了zlib拓展
    ob_start('ob_gzhandler');
  }
  header ("content-type: text/css; charset: utf-8");//注意修改到你的编码
  header ("cache-control: must-revalidate");
  $offset = 60 * 60 * 24;//css文件的距离现在的过期时间，这里设置为一天
  $expire = "expires: " . gmdate ("D, d M Y H:i:s", time() + $offset) . " GMT";
  header ($expire);
  ob_start();

  
   //包含你的全部css文档
  $path = realpath(__FILE__);
   $siteUrl = substr($path,0,-25);
  include($siteUrl.'/js/jquery-1.4-and-jquery-ui-core-1.7.2.js');
  include($siteUrl.'/js/jquery-ui-1.7.2/dragable.js');
  include($siteUrl.'/js/thickbox/jquery.mousewheel.min.js');
  include($siteUrl.'/js/tbox/tbox.js');
  include($siteUrl.'/js/public.js');
  include($siteUrl.'/js/jwidget_1.0.0.js');
  include($siteUrl.'/js/autocomplete/jquery.autocomplete.js');
  include($siteUrl.'/js/scrolltopcontrol.js');
  include($siteUrl.'/js/preview.js');
  include($siteUrl.'/js/thickbox/thickbox.js');

  if(extension_loaded('zlib')){
    ob_end_flush();//输出buffer中的内容，即压缩后的css文件
  }
?>